package com.dt76.smallloanbackendservice.controller.xiaohao;

import com.dt76.smallloanbackendservice.pojo.xiaohao.YBankAccount;
import com.dt76.smallloanbackendservice.service.xiaohao.YBankAccountService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/xiaohao")
public class BankAccountController {

    @Resource
    private YBankAccountService yBankAccountService;

    @RequestMapping("/YBankAccount/qryAllAccount")
    @ResponseBody
    public List<YBankAccount> qryAllAccount(){
        return yBankAccountService.qryAllAccount();
    }
    @RequestMapping("/YBankAccount/qryById")
    @ResponseBody
    public YBankAccount qryById(int id){
        return yBankAccountService.qryById(id);
    };
}
